//index.js
//获取应用实例
const app = getApp()

Page({
  data:{
    currentIndex:0,
    tabs:["首页","电影","音乐"]
  },
  handleItem(event){
    // console.log(event.currentTarget.dataset)
    var {index}=event.currentTarget.dataset
    console.log(index)
    this.setData({
      currentIndex:index
    })
  }
})
